package com.idheima.zuoye.zuoye3;

public class Cat extends  Fu{
    public Cat(String breed, String color, String name, int age) {
        super(breed, color, name, age);
    }

    public void catchMouse(){
        System.out.println(getColor()+"的"+getBreed()+"小猫"+","+"今年"+getAge()+"岁"+","+"它名叫："+getName()+","+"它的技能是抓老鼠");
    }
    @Override
    public void eat() {
        System.out.println(getColor()+"的"+getBreed()+"小猫"+","+"今年"+getAge()+"岁"+","+"它名叫："+getName()+","+"它正在吃小黄鱼");
    }
}
